home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
misc
/
amag
/
sh9301e.lha
/
Maxon-CPP-Demo
/
Include
/
fstream.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-17
|
836b
|
46 lines
#ifndef _INCLUDE_FSTREAM_H
#define _INCLUDE_FSTREAM_H
#ifndef _INCLUDE_STREAM_H
#include <stream.h>
#endif
typedef long streampos;
typedef long streamoff;
class fstreambase: public virtual ios
{ protected:
fstreambase(FILE *f=0);
~fstreambase();
public:
FILE *open(const char*, int);
void close();
int buffer(unsigned s);
void flush();
int seekg(long, int=ios::beg);
long tellg();
};
class ofstream: public ostream, public fstreambase
{ public:
ofstream();
ofstream(const char*, int = ios::out);
~ofstream();
};
class ifstream: public istream, public fstreambase
{
public:
ifstream();
ifstream(const char*, int = ios::in);
~ifstream();
};
class fstream: public ostream, public istream, public fstreambase
{ public:
fstream();
fstream(const char*, int);
~fstream();
};
#endif